
	<div class="block">

<div id= 'content'>
	<h2>总目录的显示和修改</h2>
	<table class='contentTable' border="1">
			<tr>
		<td>id</td>
		<td>rid</td>
		<td>url</td>
		<td>label</td>
		<td>toid</td>
		<td>detail</td>
		</tr>
	<?php
	
	foreach($menus as $menu){
	
	?>
	<tr>
		<td><?php echo $menu->id;?></td>
		<td><?php echo $menu->rid;?></td>
		<td><?php echo $menu->url;?></td>
		<td><?php echo $menu->label;?></td>
		<td><?php echo $menu->toid;?></td>
		<td><?php echo $menu->detail;?></td>
		</tr>
	<?php
	
	}
	
	?>
	</table>
	
	
	
<br>
<br>
<br>
<div class="done" style="display:none;">
<b>操作成功</b>
<a href="/admin/?page=m">返回</a>
</div>
    <div class="form">
    	<b>添加新的目录</b>
        <form>
        	<input type="hidden" id='page' name="task" value="menu" />

    <div class="element">
        <label>rid</label>
 
        <input type="text" id="rid" name="task" class="text" value=<?php echo max($menuRid)+1?> disabled/>
    </div>
    <div class="element">
        <label>url</label>
        <input type="text" id="url" name="task" class="text" />
    </div>
    <div class="element">
        <label>label</label>
        <input type="text" id="label" name="task" class="text" />
    </div>
    
    <div class="element">
        <label>detail</label>
        <textarea id="detail" name="task" class="text textarea" /></textarea>
    </div>
    <div class="element">
        <label>toid</label>
                 <select id="toid" name="task" >
          	<?php
          	foreach($menuRid as $r){
          	?>
    <option><?php echo $r?></option>
    <?php
    }
          	?>
  </select>
      
    </div>
    <div class="element">
         <button type="button" id="submit">添加</button>
        <div class="loading"></div>
    </div>
    </form>
    </div>
</div>
<div class="clear"></div>
	</div>